namespace :tmp do
  namespace :assets do
    desc "Clears javascripts/cache and cached Rails actions"
    task :clear => :environment do
      puts "Clearing cached JS files"
      FileUtils.rm(Dir['public/javascripts/cache/[^.]*'])
      puts "Clearing cached HTML files"
      FileUtils.rm(Dir['public/[a-z]*.html'])
      puts "Done"
    end
  end
end